package com.tzbank.wisdom.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.hibernate.annotations.Table;

import com.tzbank.entity.BaseModel;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_ibsaccess_log")
@Table(appliesTo = "mb_ibsaccess_log", comment = "日志信息表")
public class IbsaccessLog extends BaseModel implements Serializable{
	
	
	private static final long serialVersionUID = -340616052851232233L;

	/**
	 * 自己产生的流水号
	 */
	@ApiModelProperty(value = "流水号")
	@Column(name = "accessjnlno", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '流水号'")
	private String accessjnlno;
	
	/**
	 * 登录状态，是否登录成功 0-未登录 1-登录成功 2-登录失败
	 */
	@ApiModelProperty(value = "登录状态，是否登录成功 0-未登录 1-登录成功 2-登录失败")
	@Column(name = "accessstate", columnDefinition = "varchar(2)  DEFAULT NULL COMMENT '登录状态，是否登录成功 0-未登录 1-登录成功 2-登录失败'")
	private String accessstate;
	
	/**
	 * 登录时间
	 */
	@ApiModelProperty(value = "登录时间")
	@Column(name="accessdate", columnDefinition = "timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '登录时间'")
	private Date accessdate;
	
	/**
	 * 来源渠道-固定：mbbs 智脑平台
	 */
	@ApiModelProperty(value = "")
	@Column(name = "machineid", columnDefinition = "varchar(255)  DEFAULT NULL COMMENT '来源渠道-固定：mbbs 智脑平台'")
	private String machineid;
	
	/**
	 * ip地址 
	 */
	@ApiModelProperty(value = "ip地址")
	@Column(name = "accessip", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT 'ip地址'")
	private String accessip;
	
	/**
	 * 固定 per:表示个人
	 */
	@ApiModelProperty(value = "固定 per:表示个人")
	@Column(name = "moduleid", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '固定 per:表示个人'")
	private String moduleid;
	
	/**
	 * 登录设备:Android-ios
	 */
	@ApiModelProperty(value = "登录设备 Android-ios")
	@Column(name = "channelid", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '登录设备: Android-ios'")
	private String channelid;
	
	/**
	 * 登录方式  固定  写死：R
	 */
	@ApiModelProperty(value = "登录方式")
	@Column(name = "logintype", columnDefinition = "varchar(2)  DEFAULT NULL COMMENT '登录方式'")
	private String logintype;
	
	/**
	 * 用户序号 userSeqNo  5000008
	 */
	@ApiModelProperty(value = "用户序号")
	@Column(name = "userseq", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '用户序号'")
	private String userseq;
	
	/**
	 * clientseqNo 客户序号 50000040
	 */
	@ApiModelProperty(value = "客户序号")
	@Column(name = "uniqueuserid", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '客户序号'")
	private String uniqueuserid;
	
	/**
	 * 设备信息
	 */
	@ApiModelProperty(value = "错误信息")
	@Column(name = "useragent", columnDefinition = "varchar(400)  DEFAULT NULL COMMENT '设备信息'")
	private String useragent;
	
	
	
}
